unit PCbPngForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, PBtnPngForm;

type
  TCbPngForm = class(TBtnPngForm)
    procedure lblFormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);override;
    procedure lblFormMouseEnter(Sender: TObject);
    procedure lblFormMouseLeave(Sender: TObject);
    procedure lblFormMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
    procedure lblFormClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  CbPngForm: TCbPngForm;

implementation

uses PAuthorizationForm;

{$R *.dfm}

{ TCbPngForm }

procedure TCbPngForm.lblFormClick(Sender: TObject);
begin
  AuthorizationForm.changeStateRemember;
  Windows.SetFocus(AuthorizationForm.Handle);
end;

procedure TCbPngForm.lblFormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
//  Self.setParameters(ParentPngForm, TBtnPngForm(Self).getImgNormal, getXPos, getYPos);
end;

procedure TCbPngForm.lblFormMouseEnter(Sender: TObject);
begin
  if not stateRemember then
    inherited;
//  Abort;
end;

procedure TCbPngForm.lblFormMouseLeave(Sender: TObject);
begin
  if not stateRemember then
    inherited;

  Windows.SetFocus(AuthorizationForm.Handle);
end;

procedure TCbPngForm.lblFormMouseUp(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  Abort;
end;

end.
